class BootStrap {

    def topicMsgThreadService
    //def testEAPService
    def init = { servletContext ->
        try {
            //testEAPService.init("jms.queue.APS.EAPADMIN","jms.queue.APS.EAPADMIN.REPLY")
            //testEAPService.start()
            //TestEAPServerThread t01 = TestEAPServerThread.newInstance()
            //t01.initConnect("jms.queue.APS.EAPADMIN","jms.queue.APS.EAPADMIN.REPLY")
            //t01.start()
            new Thread(topicMsgThreadService).start();
        }catch (Exception e){
            print "初始化异常.........."
            //e.printStackTrace()
        }

    }
    def destroy = {

    }
}